package service.impl;

import dao.FocussDao;
import entity.FocussEntity;
import service.FocussService;

import java.sql.SQLException;
import java.util.List;

/**
 * Created by Administrator on 2017/11/14.
 */
public class FocussServiceImpl implements FocussService {
    private FocussDao fd=new FocussDao();
    @Override
    public List<FocussEntity> queryImg() {
        List<FocussEntity> list=null;
        try {
            list=fd.queryImg();
        } catch (SQLException e) {
            e.printStackTrace();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }finally{
            try {
                fd.close();
            } catch (SQLException e) {
                e.printStackTrace();
            }
        }
        return list;
    }
}
